import request from '@/utils/request'

// 查询学生就业信息列表
export function listEmployment(query) {
  return request({
    url: '/employment/employment/list',
    method: 'get',
    params: query
  })
}

export function getMyEmployment() {
  return request({
    url: '/employment/employment/getMyEmployment',
    method: 'get'
  })
}

// 查询学生就业信息详细
export function getEmployment(id) {
  return request({
    url: '/employment/employment/' + id,
    method: 'get'
  })
}

// 新增学生就业信息
export function addEmployment(data) {
  return request({
    url: '/employment/employment',
    method: 'post',
    data: data
  })
}

// 修改学生就业信息
export function updateEmployment(data) {
  return request({
    url: '/employment/employment',
    method: 'put',
    data: data
  })
}

// 删除学生就业信息
export function delEmployment(id) {
  return request({
    url: '/employment/employment/' + id,
    method: 'delete'
  })
}
